package com.ncucoder.soms.dto;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.log4j.Log4j2;

/**
 * 调用接口返回的对象
 *
 * @author <a href="https://www.ncucoder.com">hsowan</a>
 * @date 2019-07-13
 **/
@Data
@Log4j2
@NoArgsConstructor
@AllArgsConstructor
public class ResponseDTO {
    public static final Integer BAD_REQUEST = 400;
    public static final Integer UNAUTHORIZED = 401;
    public static final Integer SERVER_ERROR = 500;
    public static final Integer OK = 200;
    public static final String SERVER_ERROR_MASSAGE = "Please contact with hsowan<hsowan.me@gmail.com>";
    public static final Integer CREATED = 201;

    private Integer code;
    private Object content;

}
